package net.mushystuff.dogalogue.tapestry.pages;

import java.util.List;

import org.apache.tapestry.ioc.annotations.Inject;

import net.mushystuff.dogalogue.beans.Dog;
import net.mushystuff.dogalogue.services.DogService;

public class Start {
	
	@Inject
	private DogService dogService;

	private List<Dog> _dogs;

	public List<Dog> getdogs() {
		return _dogs;
	}

	public void setdogs(final List<Dog> dogs) {
		this._dogs = dogs;
	}
	
	void onActivate() {
		setdogs(dogService.getAllDogs());
	}
}
